Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update type hints #408

Merged
merged 2 commits into from
Dec 13, 2024
Merged

Update type hints #408

merged 2 commits into from
Dec 13, 2024

Conversation

mathialo
Copy link
Collaborator

Go from Optional[str] to str | None

Use list, dict and so on directly

Use str | int instead of Union[str, int]

And do all of it consistently.

Go from `Optional[str]` to `str | None`

Use `list`, `dict` and so on directly

Use `str | int` instead of `Union[str, int]`

And do all of it consistently.
@mathialo mathialo requested a review from a team as a code owner December 12, 2024 10:11
Copy link

codecov bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 98.73418% with 2 lines in your changes missing coverage. Please review.

Project coverage is 74.50%. Comparing base (adb07f5) to head (faa4afd).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
cognite/extractorutils/configtools/elements.py 95.65% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #408   +/-   ##
=======================================
  Coverage   74.50%   74.50%           
=======================================
  Files          40       40           
  Lines        3353     3350    -3     
=======================================
- Hits         2498     2496    -2     
+ Misses        855      854    -1     
Files with missing lines Coverage Δ
cognite/extractorutils/__init__.py 100.00% <100.00%> (ø)
cognite/extractorutils/_inner_util.py 94.73% <100.00%> (ø)
cognite/extractorutils/base.py 48.92% <100.00%> (+0.27%) ⬆️
cognite/extractorutils/configtools/_util.py 65.00% <100.00%> (ø)
cognite/extractorutils/configtools/loaders.py 83.71% <100.00%> (ø)
cognite/extractorutils/configtools/validators.py 72.72% <100.00%> (-2.28%) ⬇️
cognite/extractorutils/exceptions.py 77.77% <100.00%> (-2.23%) ⬇️
cognite/extractorutils/metrics.py 92.70% <100.00%> (ø)
cognite/extractorutils/statestore/_base.py 90.47% <ø> (-0.23%) ⬇️
cognite/extractorutils/statestore/hashing.py 44.85% <100.00%> (ø)
... and 14 more

@ozangoktan ozangoktan merged commit 7a663f8 into master Dec 13, 2024
5 checks passed
@ozangoktan ozangoktan deleted the update-type-hints branch December 13, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants